<?php global $user, $base_url; ?>
<?php $user_info = user_load($user->uid); ?>
<?php $store_address = variable_get('wh_store_address'); ?>
<div class="right_user_info">
    <section>
        <h3>
            <a href="<?php print $base_url . '/user/transactions';?>">
                Your balance is
                <span class="balance">$<?php print number_format($user_info->balance, 2);?></span>
            </a>
        </h3>
        <h6>
            FastClub Status:
            <a href="javascript:;">Valid Until <?php print format_date($user_info->created, 'wh_short_date')?> </a>
        </h6>
    </section>
    <section class="user_info well">
        <h3 class="centered">Ship your items to</h3>
        <table class="address">
            <tbody>
            <tr>
                <th>Name:</th>
                <td><?php print $user_info->name;?></td>
            </tr>
            <tr>
                <th>Address Line 1:</th>
                <td><?php print $store_address->address;?></td>
            </tr>
            <tr>
                <th>Address Line 2:</th>
                <td><?php print 'Suite ' . $user->uid;?></td>
            </tr>
            <tr>
                <th>City:</th>
                <td><?php print $store_address->city;?></td>
            </tr>
            <tr>
                <th>State:</th>
                <td><?php print $store_address->state;?></td>
            </tr>
            <tr>
                <th>ZIP:</th>
                <td><?php print $store_address->zip;?></td>
            </tr>
            <tr>
                <th>Phone:</th>
                <td><strong>
                    <a class="phone" href="#">
                        <?php print $store_address->phone;?>
                        <i class="icon-warning-sign"></i>
                    </a>
                    <?php if (!empty($store_address->phone_msg)): ?>
                    <span class="text_show">
						<?php print nl2br($store_address->phone_msg);?>
					</span>
                    <?php endif;?>
                </strong></td>
            </tr>

            </tbody>
        </table>
    </section>
</div>
<div class="clearfix"></div>